<?php
//рус
include_once (_APP_PATH . "modules/admin/module/module_admin_http.php");
class module_admin_http_web extends module_admin_http
{
    public function Init ()
    {
    	parent::Init();
        $this->GetDecorator()->SetTemplate('default');
        return $this;
    }

    protected function AfterFailedLogin()
    {
    	$user = $this->GetUser();
		if ($user->IsError())
        {
        	$libs = $this->GetLibCollection();
        	$libs->messanger->createMessage($user->GetErrorMessage(), MESSAGE_ERROR);
        }    	
    }    
    
    protected function AfterSuccessLogin()
    {
    	
    }    
    
    protected function AfterSuccessLogout()
    {
        $this->GetResponse()->setRedirect(_ROOT_URL.$this->GetRequest()->getRequestUri())->sendHeaders();
        exit();    	
    }
}